package com.design.state;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;

/**
 * @author ytj
 * @date 2024/11/28 15:41
 */
public class ActivityService {
    private Map<String,Enum<StateEnum>> map=new HashMap<>();

    public ActivityInfo init(String activityId,StateEnum stateEnum){
        ActivityInfo activityInfo=new ActivityInfo();
        activityInfo.setId(activityId);
        activityInfo.setName("活动测试");
        activityInfo.setStateEnum(stateEnum);
        activityInfo.setStartTime(new Date());
        activityInfo.setEndTime(new Date());
        return activityInfo;
    }


}
